export function getDate(v) {
    let newData = "";
    if (v === "NaN" || v === NaN) {
      return;
    }
    if (v) {
      v = typeof v === "Number" ? v : Number(v);
      newData = new Date(v);
    } else {
      newData = new Date();
    }
    var year = newData.getFullYear();
    var month = newData.getMonth() + 1;
    var day = newData.getDate();
    var hours = newData.getHours();
    var minutes = newData.getMinutes();
  
    return `${year}-${month}-${day} ${hours}:${minutes}`;
  }
  